import { http } from "@/utils/http";

// 获取预测数据
export const getPredictData = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewEnergyPrediction", {
    data
  });
};

// 获取预测数据
export const getCostPredictData = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewEnergyCostPrediction", {
    data
  });
};

// 下载excel年度
export const exportExcelYear = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewAnnual/download", {
    data
  });
};

// 下载excel月度
export const exportExcelMonth = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewMonth/download", {
    data
  });
};

// 负荷预测
export const getBearPredictData = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewEnergyLoadPrediction", {
    data
  });
};

// 获取预测数据
export const getPredictDataMachine = data => {
  return http.request("post", "/energy/energyPredictionStatistics/viewEnergyPredictionMonth", {
    data
  });
};
